Release 10.1A: OpenEdge Development:
Web Services


Setting up the Web service objects

To set up the session-managed Web service objects for your client:

  1. Create the Web service locator. For the sample, you generate the OrderInfo client's service object that manages the connection with the WSA:
  2. OrderInfoService service = new OrderInfoServiceLocator( ); 
    

  3. Instantiate the client objects that do the marshalling and unmarshalling of SOAP and HTTP messages for methods on the OrderInfo object. For example, you might execute the following method for the sample:
  4. OrderInfoObjStub   orderInfo  = 
           (OrderInfoObjStub)service.getOrderInfoObj(connectURL); 
    

  5. Instantiate the client objects that do the marshalling and unmarshalling of SOAP and HTTP messages for methods on the CustomerOrder object. For example you might execute the following method for the sample:
  6. CustomerOrderObjStub    custOrder = 
           (CustomerOrderObjStub)service.getCustomerOrderObj(connectURL); 
    


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095